package crm.entity;

import java.math.BigDecimal;

/**
 * CustSatiId entity. @author MyEclipse Persistence Tools
 */

public class CustSatiId implements java.io.Serializable {

	// Fields

	private CustCustomer custCustomer;
	private BigDecimal custQuali;
	private BigDecimal custService;
	private BigDecimal custCost;
	private BigDecimal custCount;
	private String custFk;

	// Constructors

	/** default constructor */
	public CustSatiId() {
	}

	/** minimal constructor */
	public CustSatiId(BigDecimal custQuali, BigDecimal custService,
			BigDecimal custCost, BigDecimal custCount) {
		this.custQuali = custQuali;
		this.custService = custService;
		this.custCost = custCost;
		this.custCount = custCount;
	}

	/** full constructor */
	public CustSatiId(CustCustomer custCustomer, BigDecimal custQuali,
			BigDecimal custService, BigDecimal custCost, BigDecimal custCount,
			String custFk) {
		this.custCustomer = custCustomer;
		this.custQuali = custQuali;
		this.custService = custService;
		this.custCost = custCost;
		this.custCount = custCount;
		this.custFk = custFk;
	}

	// Property accessors

	public CustCustomer getCustCustomer() {
		return this.custCustomer;
	}

	public void setCustCustomer(CustCustomer custCustomer) {
		this.custCustomer = custCustomer;
	}

	public BigDecimal getCustQuali() {
		return this.custQuali;
	}

	public void setCustQuali(BigDecimal custQuali) {
		this.custQuali = custQuali;
	}

	public BigDecimal getCustService() {
		return this.custService;
	}

	public void setCustService(BigDecimal custService) {
		this.custService = custService;
	}

	public BigDecimal getCustCost() {
		return this.custCost;
	}

	public void setCustCost(BigDecimal custCost) {
		this.custCost = custCost;
	}

	public BigDecimal getCustCount() {
		return this.custCount;
	}

	public void setCustCount(BigDecimal custCount) {
		this.custCount = custCount;
	}

	public String getCustFk() {
		return this.custFk;
	}

	public void setCustFk(String custFk) {
		this.custFk = custFk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CustSatiId))
			return false;
		CustSatiId castOther = (CustSatiId) other;

		return ((this.getCustCustomer() == castOther.getCustCustomer()) || (this
				.getCustCustomer() != null
				&& castOther.getCustCustomer() != null && this
				.getCustCustomer().equals(castOther.getCustCustomer())))
				&& ((this.getCustQuali() == castOther.getCustQuali()) || (this
						.getCustQuali() != null
						&& castOther.getCustQuali() != null && this
						.getCustQuali().equals(castOther.getCustQuali())))
				&& ((this.getCustService() == castOther.getCustService()) || (this
						.getCustService() != null
						&& castOther.getCustService() != null && this
						.getCustService().equals(castOther.getCustService())))
				&& ((this.getCustCost() == castOther.getCustCost()) || (this
						.getCustCost() != null
						&& castOther.getCustCost() != null && this
						.getCustCost().equals(castOther.getCustCost())))
				&& ((this.getCustCount() == castOther.getCustCount()) || (this
						.getCustCount() != null
						&& castOther.getCustCount() != null && this
						.getCustCount().equals(castOther.getCustCount())))
				&& ((this.getCustFk() == castOther.getCustFk()) || (this
						.getCustFk() != null && castOther.getCustFk() != null && this
						.getCustFk().equals(castOther.getCustFk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getCustCustomer() == null ? 0 : this.getCustCustomer()
						.hashCode());
		result = 37 * result
				+ (getCustQuali() == null ? 0 : this.getCustQuali().hashCode());
		result = 37
				* result
				+ (getCustService() == null ? 0 : this.getCustService()
						.hashCode());
		result = 37 * result
				+ (getCustCost() == null ? 0 : this.getCustCost().hashCode());
		result = 37 * result
				+ (getCustCount() == null ? 0 : this.getCustCount().hashCode());
		result = 37 * result
				+ (getCustFk() == null ? 0 : this.getCustFk().hashCode());
		return result;
	}

}